package com.oauth2.entity;

import org.springframework.security.core.GrantedAuthority;

/**
 * <h3>springboot-security-oauth2</h3>
 * <p>角色</p>
 *
 * @author gdw
 * @since 2024-07-05 15:54:04
 */
public class Role implements GrantedAuthority {

    private Long id;
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getAuthority() {
        return name;
    }

}
